package com.wnxy.mallserver.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单详情的实体类
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OrderItem {
    private Integer id;
    //订单id
    private Integer oid;
    private Integer gid;
    private String gname;
    private String image;
    private Integer num;
    private BigDecimal price;
    //订单状态
    private String state;

    //重载构造方法，仅需五个数据
    public OrderItem(Integer gid, String gname, String image, Integer num, BigDecimal price) {
        this.gid = gid;
        this.gname = gname;
        this.image = image;
        this.num = num;
        this.price = price;
    }
}
